package com.lionel.threadLocal;

/**
 * @author 714936489@qq.com
 * @date 2018/5/19 16:10
 */
public class RequestHolder {
    private static final ThreadLocal<Long> requestHolder = new ThreadLocal<>();
    public static void add(Long id){
        requestHolder.set(id);
    }
    public static Long get(){
        return requestHolder.get();
    }
    public static void remove(){
        requestHolder.remove();
    }
}
